package org.jeecg.modules.basic.demo.school.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.basic.demo.school.entity.LwgyBaseSchool;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.jeecg.modules.basic.demo.student.entity.LwgyBaseStudent;
import org.jeecg.modules.system.entity.SysUser;

import java.util.List;
import java.util.Map;

/**
 * @Description: lwgy_base_school
 * @Author: jeecg-boot
 * @Date:   2021-01-24
 * @Version: V1.0
 */
public interface LwgyBaseSchoolMapper extends BaseMapper<LwgyBaseSchool> {

	/**
	 * 编辑节点状态
	 * @param id
	 * @param status
	 */
	void updateTreeNodeStatus(@Param("id") String id,@Param("status") String status);

	List<LwgyBaseSchool> selectClassList(LwgyBaseSchool lwgyBaseSchool);

	String getMaxSysOrgCode(String pid);

    List<SysUser> getUserByUniversityCode(String universityCode);

	LwgyBaseSchool getClassIdByName(@Param("lbs") LwgyBaseStudent lwgyBaseStudent);

	String getYearIdByName(@Param("lbs") LwgyBaseStudent lwgyBaseStudent);

    List<LwgyBaseSchool> getSysOrgCode(@Param(Constants.WRAPPER)QueryWrapper<LwgyBaseStudent> queryWrapper);
}
